home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15318 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  40 lines

  1. Path: news.magmacom.com!not-for-mail
  2. From: ezust@mag1.magmacom.com (Acme Instant Dehydrated Boulder Kit)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Is it OK to delete const *type pointers?
  5. Date: 4 Apr 1996 13:50:49 -0500
  6. Organization: Cloud-Zero, Canada
  7. Message-ID: <4k15m9$gf8@mag1.magmacom.com>
  8. References: <4jpq00$lhj@dub-news-svc-6.compuserve.com>
  9. NNTP-Posting-Host: mag1.magmacom.com
  10.  
  11. In article <4jpq00$lhj@dub-news-svc-6.compuserve.com>,
  12. Philippe Verdy  <100105.3120@compuserve.com> wrote:
  13. >jlilley@ix.netcom.com (John Lilley) s'Θcrit :
  14. >> In article <4jhjub$fpc@mag1.magmacom.com>, ezust@mag1.magmacom.com says...
  15.  
  16. Thanks for all the follow-ups but nobody told me anything I didn't know
  17. already.
  18.  
  19. deleting a pointer to a constant object is, IMHO, something which should not
  20. be allowed by the language. And it is also something which is not permitted
  21. by some compilers. I understand why the language might allow it, and I
  22. understand why it might not. I've tried it on compilers which allow it,
  23. and I have tried it on compilers which don't.
  24.  
  25. What I want to know is, IS THERE SOMETHING IN THE DRAFT STANDARD that
  26. discusses this? If so, where should I go to find it? Is a compiler which
  27. actively prevents you from deleting a pointer to constant memory going
  28. against the draft standard, or is it consistent with the language spec?
  29.  
  30. While people's opinions on this subject are interesting, I've already
  31. discussed it to death with co-workers. I just want to know why some
  32. compilers don't let you do it and others do.
  33.  
  34.  
  35. -- 
  36. Alan Ezust                       "Just because I work for the federal
  37. Ottawa, Canada                    government doesn't mean I'm an expert
  38. ezust@magmacom.com                on cockroaches"  -Special Agent Fox Mulder
  39. http://www2.magmacom.com/~ezust   
  40.